
import sys
import os

path = sys.modules["__main__"].__file__
path = path.replace('\\', '/').split('/')
try:
    path = os.sep.join(path[:path.index('PythonPackages') + 1])
except ValueError:
    path = r"C:\SaberTools\tools\PythonPackages"

if path not in sys.path:
    sys.path.append(path)

if __name__ == "__main__":
    print(path)
